package com.base.service.impl;

import com.base.mapper.voipmapper.RebateDisMapper;
import com.base.po.voip.RebateDis;
import com.base.service.RebateDisService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service("rebateDisService")
public class RebateDisServiceImpl implements RebateDisService {

    @Autowired
    private RebateDisMapper rebateDisMapper;

    @Override
    public int deleteByPrimaryKey(String tradeId) {
        return rebateDisMapper.deleteByPrimaryKey(tradeId);
    }

    @Override
    public int insert(RebateDis record) {
        return rebateDisMapper.insert(record);
    }

    @Override
    public int insertSelective(RebateDis record) {
        return rebateDisMapper.insertSelective(record);
    }

    @Override
    public RebateDis selectByPrimaryKey(String tradeId) {
        return rebateDisMapper.selectByPrimaryKey(tradeId);
    }

    @Override
    public int selectByCount(RebateDis record) {
        return rebateDisMapper.selectByCount(record);
    }

    @Override
    public List<RebateDis> selectByAll(RebateDis record, Page page) {
        return rebateDisMapper.selectByAll(record, page);
    }

    @Override
    public BigDecimal selectByMoney(RebateDis record) {
        return rebateDisMapper.selectByMoney(record);
    }

    @Override
    public int updateByPrimaryKeySelective(RebateDis record) {
        return rebateDisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RebateDis record) {
        return rebateDisMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateByUid(String uid) {
        return rebateDisMapper.updateByUid(uid);
    }

    @Override
    public RebateDis countByShopAll(String shopid, String tradeId, String mobile) {
        return rebateDisMapper.countByShopAll(shopid, tradeId, mobile);
    }

    @Override
    public List<RebateDis> selectByShopAll(Page page, String shopid, String tradeId, String mobile) {
        return rebateDisMapper.selectByShopAll(page, shopid, tradeId, mobile);
    }

    @Override
    public RebateDis countByParentAll(String parentid, String tradeId, String mobile) {
        return rebateDisMapper.countByParentAll(parentid, tradeId, mobile);
    }

    @Override
    public List<RebateDis> selectByParentAll(Page page, String parentid, String tradeId, String mobile) {
        return rebateDisMapper.selectByParentAll(page, parentid, tradeId, mobile);
    }
}
